<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-11
 * Time: 09:23
 * 房间设施副表 - 关联设置主表 以及 房间主表
 */

namespace app\api\model;


use think\model\concern\SoftDelete;

class HotelRoomFacility extends BaseModel
{
    use SoftDelete;

    protected $hidden = [
        'id', 'facility_id', 'hotel_room_id' , 'create_time', 'update_time', 'delete_time'
    ];

    // 关联设施主表
    public function facility()
    {
        return $this->belongsTo('Facility','facility_id');
    }
}